package com.killer.io;

import java.io.InputStream;

public class Resource {

    /**
     * 将指定路径的配置文件加载成流保存在内存中
     * @param path
     * @return
     */
    public static InputStream getResourceAsStream(String path){
        return Resource.class.getClassLoader().getResourceAsStream(path);
    }
}
